package cn.sh.tools.service.component.image;

import cn.hutool.core.bean.BeanUtil;
import cn.sh.tools.domain.other.Exif;
import cn.sh.tools.util.PhotoUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description 照片 组件
 * @Classname PhotoComponent
 * @Date 2024/3/26
 * @Author sh
 **/
@Component
@Slf4j
public class PhotoComponent {

    public Map<String, Object> getPhotoMetaInfo(String photoPath) {
        Exif exif = PhotoUtil.getPhotoMetaInfo("E:/LrC/HAO00596-LrC调色.jpg");
        return BeanUtil.beanToMap(exif);
    }

}
